<template lang="">
    <div class="echarts">
        <div class="top">
            <h1>新型冠状肺炎疫情监控</h1>
            <div class="times">当前时间:{{time |fromtime}}</div>
        </div>
        <div class="main">
            <div class="left">
               <div class="pain">
                <dv-border-box-1><barOne /></dv-border-box-1>
                <dv-border-box-1><lineOne /></dv-border-box-1>
                <dv-border-box-1><pieOne /></dv-border-box-1>
               </div>
            </div>
            <div class="middle">
                <div class="pains">
                    <dv-border-box-4 >
                        <div class="center_top_one" ref="center_top" >
          <div class="m1">
                        <div class="shu">
                            <ul>
                                <li>217021468</li>
                                <li>46987153</li>
                                <li>165524088</li>
                                <li>4510227</li>
                            </ul>
                            <div class="jiao"></div>
                            <div class="jiao1"></div>
                        </div>
                        <div class="shu1">
                            <ul>
                                <li>累计确诊</li>
                                <li>现存确诊</li>
                                <li>累计治愈</li>
                                <li>累计死亡</li>
                            </ul>
                        </div>
                    </div>
                    <div class="m2">
                        <div class="lei">累计确诊</div>
                        <div class="xian">现存确诊</div>
                    </div>
                </div>
                    </dv-border-box-4>
                    <div class="bor">
                       
                        <div class="img"></div>
                        <div class="img1"></div>  
                        <div class="img2"></div>  
                        <div class="word"><world/>
                    </div>
                           
                        
                    </div>
                </div>
            </div>
            <div class="right">
                <div class="pain">
                <dv-border-box-1><barTwo /></dv-border-box-1> 
                <dv-border-box-1><lineTwo /></dv-border-box-1>
                <dv-border-box-1><pieTwo /></dv-border-box-1>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
import barOne from "../components/barOne.vue"
import barTwo from "../components/barTwo.vue"
import lineOne from "../components/lineOne.vue"
import lineTwo from "../components/lineTwo.vue"
import pieOne from "../components/pieOne.vue"
import pieTwo from "../components/pieTwo.vue"
import world from "../components/world.vue"
export default {
    components: {
        barOne,
        barTwo,
        lineOne,
        lineTwo,
        pieOne,
        pieTwo,
        world
    },
    data() {
        return {
            time: new Date()
        }
    },
    created() {
        this.ttt()
    },
    methods: {
        ttt() {
            setInterval(() => {
                this.time = new Date()
            }, 1000)
        }
    }
}
</script>
<style lang="less" scoped>
@font-face {
    font-family: myFont;
    src: url(../assets/$RIF3814.ttf);
}

@keyframes rotatel {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes radio {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.echarts {
    width: 100%;
    height: 100%;
}

.top {
    width: 100%;
    height: 1.25rem;
    background: url(../assets/img/head_bg.eeff3da5.png) center no-repeat;
    font-size: 20px;
    text-align: center;
    position: relative;

}

.times {
    position: absolute;
    right: 20px;
    top: 20px;
}

.main .middle {
    width: 720px;
    height: 660px;

    // border: 1px solid #fff;
    .pains {
        width: 100%;
        height: 150px;
    }
}

.main {
    width: 100%;
    height: 660px;
    display: flex;

    .left {
        width: 400px;
        height: 660px;


        .pain {
            width: 100%;
            height: 220px;
            margin: 5px 0;
        }
    }

    .right {
        width: 400px;
        height: 690px;


        .pain {
            width: 100%;
            height: 220px;
            margin: 5px 0;
        }
    }
}

.center_top_one {
    width: 100%;
    height: 30%;
    // background-color: aqua;

    .m1 {
        width: 100%;
        height: 65%;
        // background-color: beige;
        box-sizing: border-box;
        padding-top: 8px;
        background-color: rgba(10, 29, 101, 0.7);

        .shu {
            width: 94%;
            height: 50px;
            border: 1px solid red;
            margin-left: 17px;
            margin-top: 40px;
            position: relative;
            border: 1px solid rgb(5, 46, 96);

            ul {
                display: flex;
                justify-content: space-around;
                // margin-bottom: 50px;
            }

            li {
                list-style: none;
                color: rgb(253, 235, 132);
                font-family: myFont;
                margin-top: 5px;
                // margin-left: -30px;
                margin: 3px;
                font-size: 35px;
                font-weight: 800;
                padding-right: 5px;
                border-right: 1px solid rgb(8, 76, 159);
            }
        }

        .shu1 {
            width: 94%;
            height: 25%;
            // border: 1px solid red;
            margin-left: 17px;
            color: white;

            ul {
                display: flex;
                justify-content: space-around;
                box-sizing: border-box;
                margin-top: 5px;
            }

            li {
                list-style: none;
            }
        }
    }

    .m2 {
        // background-color: aqua;
        margin-top: 145px;
        display: flex;
        justify-content: space-around;

        .lei {
            width: 120px;
            height: 40px;
            color: white;
            background: rgba(23, 58, 133, 0.7);
            text-align: center;
            line-height: 40px;
            border-radius: 30px 30px 30px 30px;
        }

        .lei:hover {
            color: rgb(224, 203, 85);
            cursor: pointer;
        }

        .xian {
            width: 120px;
            height: 40px;
            color: rgb(224, 203, 85);
            background: rgba(23, 58, 133, 0.7);
            text-align: center;
            line-height: 40px;
            border-radius: 30px 30px 30px 30px;
            cursor: pointer;
        }
    }
}

.bor {
    margin-top: 70px;
    width: 100%;
    height: 440px;
    // border: 1px solid #000;
    position: relative;

    .img1 {
        width: 440px;
        height: 440px;
        // border: 1px solid #FFF;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: rotatel 15s linear infinite;
        // // margin: auto;
        background: url(../assets/img/jt.c268bab5.png) center top no-repeat;
        background-size: 100%, 100%;



    }

    .img {
        width: 390px;
        height: 390px;
        // border: 1px solid #FFF;

        // border: 1px solid #FFF;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: radio 30s linear infinite;
        // // margin: auto;
        background: url(../assets/img/map.bab2b509.png ) center top no-repeat;
        background-size: 100%, 100%;



    }

    .img2 {
        width: 440px;
        height: 440px;
        // border: 1px solid #FFF;

        // border: 1px solid #FFF;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: radio 30s linear infinite;
        // margin: auto;
        background: url(../assets/img/lbx.0dea0f97.png ) center top no-repeat;
        background-size: 100%, 100%;
    }

    .word {
        width: 440px;
        height: 440px;

        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);



    }
}
</style>